import request from '@/utils/request'

// 查询签到历史列表
export function listSignHistory(query) {
  return request({
    url: '/system/SignHistory/list',
    method: 'get',
    params: query
  })
}

// 查询签到历史详细
export function getSignHistory(userId) {
  return request({
    url: '/system/SignHistory/' + userId,
    method: 'get'
  })
}

// 新增签到历史
export function addSignHistory(data) {
  return request({
    url: '/system/SignHistory',
    method: 'post',
    data: data
  })
}

// 修改签到历史
export function updateSignHistory(data) {
  return request({
    url: '/system/SignHistory',
    method: 'put',
    data: data
  })
}

// 删除签到历史
export function delSignHistory(userId) {
  return request({
    url: '/system/SignHistory/' + userId,
    method: 'delete'
  })
}
